import request from '@/utils/request'
import { baseURL } from '@/utils/request';

export const uploadSyllabusFile = (data) => {
    return request.post(`${baseURL}/exam/T_subject/uploadDocumen`, data)
}

//开头表
export const getBeginData = (id) => {
    return request.get(`/exam/beginning/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程描述
export const getCourseDes = (id) => {
    return request.get(`/exam/Class_description/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程介绍
export const getCourseIntroduce = (id) => {
    return request.get(`/exam/class_Introduce/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程目标
export const getCourseAim = (id) => {
    return request.get(`/exam/class_Target/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程目标与毕业要求指标点的对应关系
//课程目标名称查询
export const getCourseName = (id) => {
    return request.get(`/exam/index_Point/Get_Class_Target_Name?t_user_and_a_c_s_id=${id}`, id);
};

//课程目标名称查询  获取指标点
export const getIndexPoint = (id) => {
    return request.get(`/exam/index_Point/Get_Index_Point_Name?t_user_and_a_c_s_id=${id}`, id);
};

//两者的关系查询
export const getNameAndPoint = (id) => {
    return request.get(`/exam/index_Point/Get_Class_Target_AND_Point?t_user_and_a_c_s_id=${id}`, id);
};

//课程内容查询 单元知识点名字查询
export const getKnowledgeName = (id) => {
    return request.get(`/exam/class_Content/Get_unit_Knowledge?t_user_and_a_c_s_id=${id}`, id);
};

//课程内容查询 单元知识点对应的课程内容查询
export const getKnowledgeContent = (id) => {
    return request.get(`/exam/class_Content/Get_Class_Content?t_user_and_a_c_s_id=${id}`, id);
};

//课程内容查询 单元知识点对应的课程目标查询
export const getKnowledgeTarget = (id) => {
    return request.get(`/exam/class_Content/Get_Unit_And_Target_Data?t_user_and_a_c_s_id=${id}`, id);
};

//课程教学进度查询
export const getCourseSchedule = (id) => {
    return request.get(`/exam/course_schedule/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程教学方法查询 ！！！
export const getCourseMethods = (id) => {
    return request.get(`/exam/class_Teaching_methods/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程考核方式查询
export const getExamineMethod = (id) => {
    return request.get(`/exam/class_Assessment_method/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程考核成绩评定方法 课程目标支撑环节权重系数查询
export const getWeightSupport = (id) => {
    return request.get(`/exam/weight_Support_link/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程考核成绩评定方法 说明查询
export const getWeightIllustrate = (id) => {
    return request.get(`/exam/weight_Support_link/Get_Weight_Support_link_illustrate?t_user_and_a_c_s_id=${id}`, id);
};
//课程考核成绩评定方法  一级考核指标查询  考试目标
export const getExamineTarget = (id) => {
    return request.get(`/exam/Level_1_assessment/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程考核成绩评定方法  二级考核指标内容查询  考试目标2
export const getExamineTargetTow = (id) => {
    return request.get(`/exam/Level_2_Content/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程考核成绩评定方法  二级考核后表查询  考试目标表
export const getExamineTargetChart = (id) => {
    return request.get(`/exam/Get_Level_2_Content_Hou/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程目标达成度评价 评价机制
export const getEvaluationMechanism = (id) => {
    return request.get(`/exam/evaluation_mechanism/get?t_user_and_a_c_s_id=${id}`, id);
};

//课程目标达成度评价 评价方法查询
export const getEvaluationWay = (id) => {
    return request.get(`/exam/Get_Evaluation_way/get?t_user_and_a_c_s_id=${id}`, id);
};

//本课程各个课程目标的权重 目标权重
export const getTargetWeight = (id) => {
    return request.get(`/exam/class_Target_Weight/get?t_user_and_a_c_s_id=${id}`, id);
}

//持续改进 持续改进
export const getContinuousImprovement = (id) => {
    return request.get(`/exam/continuous_Improvement/get?t_user_and_a_c_s_id=${id}`, id);
};

//教材和参考书目 书本和参看书目
export const getBookAndBibliography = (id) => {
    return request.get(`/exam/book/get?t_user_and_a_c_s_id=${id}`, id);
};

